package kr.hkit.powerjava.chther05.work;

import java.util.Scanner;

public class Programming4 {
	public static void main(String[] args) {
		int r;
		int h;
		double result;
		
		Scanner in = new Scanner(System.in);
		
		System.out.print("원기둥 밑면의 반지름을 입력하시오:");
		r = in.nextInt();
		System.out.print("원기둥의 높이를 입력하시오:");
		h = in.nextInt();
		
		result = (r*r*3.14)*h/2;
		
		
		System.out.println("원기둥의 부피는 "+result+"입니다");
		
	}
}
